package com.boot.security.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.boot.persistence.validate.group.InsertGroup;
import com.boot.security.model.SystemModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotNull;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 权限
 * @date 2019/8/23 22:49
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@TableName(value = "tb_access", autoResultMap = true)
@ApiModel(value = "权限对象")
public class Access extends SystemModel {

    @NotNull(groups = InsertGroup.class)
    @ApiModelProperty(value = "唯一编码", name = "code")
    private String code;

    @ApiModelProperty(value = "备注", name = "remark")
    private String remark;

    @ApiModelProperty(value = "父母", name = "parent")
    private Long parent;
}